<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>资源库</title>
<script src="../js/dtree/dtree.js" type="text/javascript"></script>
<link href="../js/dtree/dtree.css" rel="stylesheet" type="text/css">
<link href="../css/common.css" rel="stylesheet" type="text/css">
</head>
<body style=" text-align:left; padding:5px;">
<table width="220" border="0" cellspacing="0" cellpadding="0" >
<tr>
	<td>
<script type="text/javascript">
d = new dTree("d");
d.config.useCookies=false;
d.config.closeSameLevel=true;
d.add(0,-1,"功能导航");

//迭代系所
<s:iterator value="listDepartment" status="statDepartment" >
d.add(99${departmentId},0,"${departmentName}","../ExpertMain/infoDepartmentReadById.action?department.departmentId=${departmentId}","${departmentName}","main"); 
</s:iterator>

//迭代专业
<s:iterator value="listMajor" status="statMajor">
d.add(98${majorId},99${departmentId},"${majorName}","../ExpertTree/infoMajorReadById.action?major.majorId=${majorId}","${majorName}","main"); 
d.add(97${majorId},98${majorId},"专业文件资源","","专业文件资源","main"); 
d.add(96${majorId},98${majorId},"精品课程","../ExpertMain/infoExcellentCourseReadById.action?excellentCourse.exceCourseId=${exceCourseId}","精品课程","main");
d.add(95${majorId},98${majorId},"课程分类","","课程分类","main");
</s:iterator>

//迭代专业文件分类
<s:iterator value="listcourseFileSrcPublicCate" status="statcourseFileSrcPublicCate">
d.add(94${majorId}${majorFileCateId},${majorIdString}${majorFileCateParentIdString},"${majorFileCateName}","","${majorFileCateName}","main"); 
</s:iterator>

//迭代课程分类
<s:iterator value="listCourseCate" status="statCourseCate">
d.add(93${majorId}${courseCateId},95${majorId},"${courseCateName}","listCourseReadByCourseCateId.action?course.courseCateId=${courseCateId}","${courseCateName}","main"); 
</s:iterator>

//迭代课程 
<s:iterator value="listCourse" status="statCourse">
d.add(92${majorId}${courseId},93${majorId}${courseCateId},"${courseName}","listCourseReadByCourseCateId.action?course.courseCateId=${courseCateId}","${courseCateName}","main"); 
d.add(91${majorId}${courseId},92${majorId}${courseId},"课程公共文件资源","","课程公共文件资源","main"); 
</s:iterator>

//迭代课程公共文件分类
<s:iterator value="listCourseFileSrcCatePublic" status="statCourseFileSrcCatePublic">
d.add(90${majorId}${courseId}${courseFileCateId},${majorIdString}${courseId}${courseFileCateParentIdString},"${courseFileCateName}","","${courseFileCateName}","main"); 
</s:iterator>

//迭代授课教师
<s:iterator value="listCourseTeaClassFK" status="statCourseTeaClassFK">
d.add(89${majorId}${courseId}${courseTeaClassId},92${majorId}${courseId},"${realName}(${courseName})","","${realName}(${courseName})","main"); 
</s:iterator>

document.write(d);
</script>
</td>	
  </tr>
</table>
</body>
</html>